package com.xoms.pad.persist.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.xoms.pad.model.DimDetailBean;
import com.xoms.pad.persist.dao.DimDetailDao;
import com.xoms.util.StringUtil;

@Repository
public class DimDetailImpl extends BaseImpl implements DimDetailDao {

	final String NAME_SPACE = NAME_SPACE_HEADER + ".DimDetailMapper";


	@Override
	public List<DimDetailBean> selectDimDetail(String did) {
		
		Map<String, Object> params = new HashMap<String, Object>();
		
		if (!StringUtil.isEmpty(did)) {
			params.put("did", did);
		}
		return sqlSessionTemplate.selectList(NAME_SPACE + ".selectDimension", params);
	}

}
